﻿namespace JR.Cms.Domain.Interface.Site.Extend
{
    public class ExtendField : IExtendField
    {
        //private IExtendFieldRepository _resp;

        public ExtendField(int id, string name)
        {
            Id = id;
            Name = name;
            //this._resp = resp;
        }

        public int Id { get; set; }
        public string Name { get; private set; }

        public string Type { get; set; }

        public string DefaultValue { get; set; }

        public string Regex { get; set; }

        public string Message { get; set; }

        public int GetDomainId()
        {
            return Id;
        }
    }
}